home *** CD-ROM | disk | FTP | other *** search
/ isnet Internet / Isnet Internet CD.iso / prog / hiz / 09 / 09.exe / adynware.exe / perl / lib / site / Set / IntegerFast.pm next >
Encoding:
Perl POD Document  |  1999-12-28  |  2.4 KB  |  106 lines

  1.  
  2.  
  3. package Set::IntegerFast;
  4.  
  5. use Bit::Vector;
  6.  
  7. use Carp;
  8.  
  9. require Exporter;
  10.  
  11. @ISA = qw(Exporter);
  12.  
  13. @EXPORT = qw();
  14.  
  15. @EXPORT_OK = qw();
  16.  
  17. $VERSION = '4.2';
  18.  
  19. sub new
  20. {
  21.     croak "Usage: \$set = Set::IntegerFast->new(\$elements);"
  22.       if (@_ != 2);
  23.  
  24.     my $proto = shift;
  25.     my $class = ref($proto) || $proto || 'Set::IntegerFast';
  26.     my $elements = shift;
  27.  
  28.     return( Bit::Vector::new( $class, $elements ) );
  29. }
  30.  
  31. sub Version
  32. {
  33.     return( $Set::IntegerFast::VERSION );
  34. }
  35.  
  36. sub AUTOLOAD
  37. {
  38.     $AUTOLOAD =~ s/^(.*::)?/Bit::Vector::/;
  39.  
  40.     return( &{$AUTOLOAD}(@_) );
  41. }
  42.  
  43. 1;
  44.  
  45. __END__
  46.  
  47. =head1 NAME
  48.  
  49. Set::IntegerFast - Sets of Integers
  50.  
  51. Easy manipulation of sets of integers
  52. (intervals from zero to some positive integer)
  53.  
  54. =head1 SYNOPSIS
  55.  
  56. Please refer to L<Bit::Vector(3)> for an overview and description of
  57. the methods supplied by this module!
  58.  
  59. =head1 DESCRIPTION
  60.  
  61. This module is kept "alive" for backward compatibility only; it is
  62. strongly recommended that you use the "Bit::Vector" module in your
  63. application(s) instead!
  64.  
  65. You will need to apply the following changes to your existing
  66. application(s):
  67.  
  68.     "Set::IntegerFast"    -->    "Bit::Vector"         (required)
  69.  
  70.     "Empty_Interval("     -->    "Interval_Empty("     (recommended)
  71.     "Fill_Interval("      -->    "Interval_Fill("      (recommended)
  72.     "Flip_Interval("      -->    "Interval_Flip("      (recommended)
  73.     "Delete("             -->    "Bit_On("             (recommended)
  74.     "Insert("             -->    "Bit_Off("            (recommended)
  75.     "flip("               -->    "bit_flip("           (recommended)
  76.     "in("                 -->    "bit_test("           (recommended)
  77.     "in("                 -->    "contains("           (alternative)
  78.     "inclusion("          -->    "subset("             (recommended)
  79.  
  80. Please refer to the file "CHANGES" in the "Bit::Vector" distribution
  81. for more details!
  82.  
  83. =head1 SEE ALSO
  84.  
  85. Bit::Vector(3), Set::IntegerRange(3), Math::MatrixBool(3),
  86. Math::MatrixReal(3), DFA::Kleene(3), Math::Kleene(3),
  87. Graph::Kruskal(3).
  88.  
  89. =head1 VERSION
  90.  
  91. This man page documents "Set::IntegerFast" version 4.2.
  92.  
  93. =head1 AUTHOR
  94.  
  95. Steffen Beyer <sb@sdm.de>.
  96.  
  97. =head1 COPYRIGHT
  98.  
  99. Copyright (c) 1995, 1996, 1997 by Steffen Beyer. All rights reserved.
  100.  
  101. =head1 LICENSE
  102.  
  103. This package is free software; you can redistribute it and/or modify
  104. it under the same terms as Perl itself.
  105.  
  106.